/*
* @author : TF-BJ-C064
* @creation : 2014-7-17 下午7:35:31
* @description : 
*
*/

package com.base;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;  

public class DynamicDataSource extends AbstractRoutingDataSource {  
  
    @Override  
    protected Object determineCurrentLookupKey() {  
        return DataSourceSwitcher.getDataSource();  
    }  
  
}  